﻿@model IEnumerable<TimeSheetManagement.Models.Project>
           
<table id="searchResults" >
    <tr>
        <th>
            Check
        </th>
        <th>
            Project Name
        </th>
        <th>
            Description
        </th>
        <th>
            Client
        </th>
        <th>
            Start Date
        </th>
        <th>
            End Date
        </th>
        <th>
            US Project Management
        </th>
        <th>
            Billable
        </th>
        <th>
            Back Up
        </th>
        <th>
            Status
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            <div class="editor-field">
            @Html.CheckBox(""+item.ProjectId)    
            </div>
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProjectName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Client)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.StartDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.EndDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.US_PM)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.BillableResource)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Back_Up)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProjectStatus.ProjectStatusName)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.ProjectId }) |
            @Html.ActionLink("Details", "Details", new { id=item.ProjectId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.ProjectId })
        </td>
    </tr>
}

</table>
